package session.stateless.SCM;

import entity.SCM.MaterialLine;
import entity.SCM.MaterialRequest;
import entity.SCM.MaterialRequestTemp;
import java.util.List;
import javax.ejb.Local;

@Local
public interface MaterialRequestBeanLocal {

    public java.util.List<MaterialRequestTemp> getMaterialRequestNeedProcess();

    public void removeMaterialLines(MaterialRequestTemp mr, List<entity.SCM.MaterialLine> mls);
    
    public boolean checkMaterialRequest(MaterialRequest mr);
    
    public Long createMaterialRequest(List<MaterialLine> materialLines);
    
    public MaterialLine createMaterialLine(String materialType, Long quantity);
    
    public boolean processPendingMaterialRequest(Long requestId);
    
    public boolean processArrivedMaterialRequest(Long requestId);
    
    public List<MaterialRequest> getMaterialRequest();
    
    public List<MaterialRequest> getPendingMaterialRequest();
    
    public List<MaterialRequest> getProcessMaterialRequest();

    public List<MaterialRequest> getSuccessMaterialRequest();

    public List<MaterialRequest> getArriveMaterialRequest();

    public boolean statePendingToArrived(Long id);
    

}
